package com.example.book.generator.utils;

import java.io.Serializable;

/**
 * Created by an on 2016/9/27.
 */
public class Xmls implements Serializable {

    private static final long serialVersionUID = 1L;

    private String field;
    private String type;
    private String types;
    private String fields;

    private boolean filterOut;

    public Xmls(String field, String type, String types, String fields){
        this.field = field;
        this.type = type;
        this.types = types;
        this.fields = fields;
        this.filterOut = DataType.isFilterOut(this.field);
    }

    public String getField(){
        return this.field;
    }

    public String getType(){
        return this.type;
    }

    public void setField(String field){
        this.field = field;
    }

    public void setType(String type){
        this.type = type;
    }

    public String getFields() {
        return fields;
    }

    public void setFields(String fields) {
        this.fields = fields;
    }

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public boolean isFilterOut() {
        return filterOut;
    }

    public void setFilterOut(boolean filterOut) {
        this.filterOut = filterOut;
    }
}
